package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfoVo trade(TradeVo tradeVo);

    String submitOrder(OrderInfoVo orderInfoVo);

    OrderInfo getOrderInfoByOrderNo(String orderNo);

    Page<OrderInfo> findUserPage(Long pageNum, Long pageSize);


    Map<Long, Integer> getOrderSaleStates(String date);
}
